package org.deng.learn.async;

import java.util.function.Consumer;

/**
 * @author 邓力宾
 * @date 2020/12/23 9:36
 * @desc
 */
@FunctionalInterface
public interface MyFuture<T> {

    void onComplete(Consumer<AsyncResult<T>> consumer) throws InterruptedException;
}
